package org.example.coffeeshoporderingsystem.member.util;

import org.example.coffeeshoporderingsystem.member.entity.Member;

public class MemberUtil {
    private static ThreadLocal<Member> memberThreadLocal = new ThreadLocal<>();

    public static void setMember(Member member) {
        memberThreadLocal.set(member);
    }

    public static Member getMember() {
        return memberThreadLocal.get();
    }

    public static void clearMember() {
        memberThreadLocal.remove();
    }
}
